package com.qiche.requestpram;

import lombok.Data;

/**
 * @author chendezhi
 * @date 2018/3/20 11:32
 */
@Data
public class PolicyListURL {
    private String keyword;
    private Integer merchantId;
    private Integer pageNum;
    private Integer pageSize;
    private Integer startRow;

    public Integer getStartRow() {
        if (pageNum!=null&&pageSize!=null){
            return (pageNum-1)*pageSize;
        }
        return startRow;
    }

    public void setStartRow(Integer startRow) {
        this.startRow = startRow;
    }
}
